let obj = {
    name: '困困',
    age: 18,
    like: {
        a: '唱',
        b: '跳',
        c: 'rap'
    }
}

function shallowCopy(obj){
    let res={}
    for(let key in obj){
        if(obj.hasOwnProperty(key)){
            res[key]=obj[key]
        }
    }
    return res
}